<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>用户</title>
</head>
<body>
<div class="pageheader">
    <h2>用户列表</h2>
</div>
<div class="contentpanel">
    <div class="panel panel-default">
        <form:form action="${contextPath}/admin/user/edit.htm" method="post" commandName="formDto"
                   cssClass="form-horizontal form-bordered">
            <form:hidden path="uuid"/>
            <div class="form-group">
                <label class="col-sm-3 control-label">姓名</label>

                <div class="col-sm-6">
                    <form:input path="name" cssClass="form-control" placeholder="名称"/>
                    <form:errors path="name" cssClass="error text-danger"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label"></label>

                <div class="col-sm-6">
                    <button type="submit" class="btn btn-primary">提交</button>
                    <a href="javascript:window.history.go(-1);" class="btn btn-default">取消</a>
                </div>
            </div>

        </form:form>
    </div>
</div>

</body>
</html>
